.client-container {
    height: 100%;
    display: flex;
    /* 水平垂直居中 */
    justify-content: center;
    align-items: center;
}
.main {
    width: 1000px;
    height: 740px;
    background-color: rgb(238, 238, 238);
    border-radius: 5px;
    display: flex;
    z-index: 2;
}
.main .left {
    width: 280px;
    height: 100%;
    background-color: rgb(76, 82, 90);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.main .right {
    width: 720px;
    height: 100%;
    padding: 0 20px;
    /* 设置z轴坐标 */

}
/* 设置模糊层 */
.cover {
    width: 100%;
    height: 100%;
    background-image: url(../image/大海.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    /* .cover 和 .main进行重叠 */
    position: absolute;
    top: 0px;
    left: 0px;
    /* 设置z轴坐标 */
    z-index: 1;
    /* 使用css滤镜效果 */
    filter: blur(20px);
}
.main .left .user {
    height: 80px;
    font-size: 20px;
    /* 行高和高度一样，文字垂直居中显示 */
    line-height: 80px;
    color: white;
    padding: 0 20px;
}
.main .left .search {
    height: 40px;
    padding: 0 20px;
    /* 弹性布局里面的元素水平显示 */
    display: flex;
    justify-content: center;
    align-items: center;
}
.main .left .search input {
    height: 34px;
    width: 200px;
    line-height: 34px;
    font-size: 14px;
    color: white;
    background-color:rgb(38, 41, 46);
    border: none;
    outline: none;
    /* 输入框文字左边距 */
    padding-left: 10px;
    border-radius: 5px;
}
.main .left .search button {
    height: 34px;
    width: 34px;
    border: none;
    outline: none;
    border-radius: 5px;
    background-image: url(../image/搜索.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position: center center;
}
.main .left .search button:active {
    background-color: green;
}
.main .table{
    height: 50px;
    display: flex;
    align-items: center;
}
.main .table .tab-session {
    height: 50px;
    width: 50%;
    background-image: url(../image/对话1.png);
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: center center;
}
.main .table .tab-friend {
    height: 50px;
    width: 50%;
    background-image: url("../image/好友.png");
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: center center;
}
.main .left .list {
    height: 570px;
    width: 100%;
    /* 会话太多，提供滚动条 */
    overflow: auto;
}
.main .left .list li {
    height: 60px;
    padding: 10px 20px;
    color: white;
    border-top: 1px solid black;
}
/* 选中会话效果 */
.main .left .list .selected{
    background-color: rgb(46, 54, 65);
}
/* 会话列表 */
.main .left .list li h3,
.main .left .list .list p {
    height: 20px;
    font-size: 14px;
    line-height: 20px;
}
/* 好友列表 */
.main .left .list li h4{
    height: 40px;
    line-height: 40px;
    font-size: 20px;
}
.hide {
    display: none;
}
/* 滚动条消失 */
::-webkit-scrollbar{
    display: none;
}
.main .right .tittle {
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}
.main .right .message-show {
    height: 550px;
    width: 680px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    /* 内容太多，自动滚动 */
    overflow: auto;
}
.main .right .message-show .message {
    margin-top: 10px;
    display: flex;
}
/* 子元素靠左 */
.main .right .message-show .message-left {
    justify-content: flex-start;
}
/* 子元素靠右 */
.main .right .message-show .message-right {
    justify-content: flex-end;
}
/* .main .right .message-show .message .box {
    width: 500px;
} */
.main .right .message-show .message .box h4{
    /* 去掉加粗 */
    font-weight: normal;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
}
.main .right .message-show .message .box p{
    padding: 20px;
    border-radius: 10px;
}
/* 左侧右侧消息设置背景色 */
.main .right .message-show .message-left .box p {
    background-color: #fff;
}
/* 左侧右侧消息设置背景色 */
.main .right .message-show .message-right .box p {
    background-color: rgb(39, 178, 39);
}

.main .right .message-input {
    /* 转成块级元素 */
    display: block;
    width: 100%;
    height: 100px;
    border: none;
    outline: none;
    /* 改进 */
    margin-top: 5px;
    background-color: rgb(238, 238, 238);
    padding: 10px;
    resize: none;
}

.main .right .ctrl {
    height: 35px;
    display: flex;
    justify-content: flex-end;
}
.main .right .ctrl button {
    height: 35px;
    width: 100px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.main .right .ctrl button:active {
    background-color: grey;
    color: white;
}